Hermes Agent

last modified

2026–7–19

Backend on Android phone

Preparations

Install Termux from F-Droid.

Run it, acquire wakelock from the notification.

To get ssh, in Termux run

pkg update
pkg upgrade -y
pkg install openssh termux-services

Exit and restart Termux and enable sshd as a service

sv-enable sshd

Copy your public ssh key from the desktop, ~/.ssh/*.pub, into ~/.ssh/ under Termux, e.g. via USB file transfer to enable key-based login.

Everything further can be done via ssh:

ssh <backend-address> -p 8022

Use Termux:Boot?

Install Hermes Agent

See Hermes on Android with Termux.

Use manual instructions. Modified to use psutil from a Termux package:

  1. Install system packages
pkg install -y git python clang rust make pkg-config libffi openssl nodejs ripgrep ffmpeg python-psutil
  1. Clone Hermes
git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agent

Needed to make some changes, see hermes-termux.patch.

  1. Create a virtual environment
python -m venv --system-site-packages venv
source venv/bin/activate
export ANDROID_API_LEVEL="$(getprop ro.build.version.sdk)"
python -m pip install --upgrade pip setuptools wheel
  1. Install the tested Termux bundle
python -m pip install -e '.[termux]' -c constraints-termux.txt
  1. Put hermes on your Termux PATH
ln -sf "$PWD/venv/bin/hermes" "$PREFIX/bin/hermes"

Setup